import request from '@/utils/request';

export async function getDictList(params) {
  return request(`/mgrApi/mdm/nmDict/queryDictItemsByCodes`, {
    method: 'POST',
    body: [...params],
  });
}
export async function getCorpList(params) {
  return request(`/mgrApi/baseApi/baseUser/queryCorpList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getBusiParam(params) {
  return request(`/mgrApi/busiParamMGR/queryBusiParam`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getChildList(params) {
  return request(`/mgrApi/org/listOrgById`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function saveBusiParam(params) {
  return request(`/mgrApi/busiParamMGR/saveBusiParam`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getRsgnRsnList(params) {
  return request(`/mgrApi/rsgnRsn/pageRsgnRsnList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function getProList(params) {
  return request(`/mgrApi/probType/pageProbTypeList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function getPageCorpList(params) {
  return request(`/mgrApi/corpDict/pageCorpDict`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function insertRsgnRsn(params) {
  return request(`/mgrApi/rsgnRsn/insertRsgnRsn`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function insertProbType(params) {
  return request(`/mgrApi/probType/insertProbType`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function insertSerType(params) {
  return request(`/mgrApi/corpDict/insertCorpDict`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function updateDiss(params) {
  return request(`/mgrApi/rsgnRsn/updateRsgnRsn`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function updatePro(params) {
  return request(`/mgrApi/probType/updateProbType`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function deleteRsgnRsn(params) {
  return request(`/mgrApi/rsgnRsn/deleteRsgnRsn`, {
    method: 'POST',
    body: params,
  });
}
export async function deleteProbType(params) {
  return request(`/mgrApi/probType/deleteProbType`, {
    method: 'POST',
    body: params,
  });
}
export async function deleteCorpDict(params) {
  return request(`/mgrApi/corpDict/deleteCorpDict`, {
    method: 'POST',
    body: params,
  });
}

export async function getModRsnInfo(params) {
  return request(`/mgrApi/rsgnRsn/getRsgnRsn`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getModProInfo(params) {
  return request(`/mgrApi/probType/getProbType`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
